import request from '@/utils/request'

// 查询图书库存管理列表
export function listLibrarystock(query) {
  return request({
    url: '/librarysystem/librarystock/list',
    method: 'get',
    params: query
  })
}

// 查询图书库存管理详细
export function getLibrarystock(stockId) {
  return request({
    url: '/librarysystem/librarystock/' + stockId,
    method: 'get'
  })
}

// 新增图书库存管理
export function addLibrarystock(data) {
  return request({
    url: '/librarysystem/librarystock',
    method: 'post',
    data: data
  })
}

// 修改图书库存管理
export function updateLibrarystock(data) {
  return request({
    url: '/librarysystem/librarystock',
    method: 'put',
    data: data
  })
}

// 删除图书库存管理
export function delLibrarystock(stockId) {
  return request({
    url: '/librarysystem/librarystock/' + stockId,
    method: 'delete'
  })
}
